package com.wanmait.recruitment.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruitment.mapper.ReleaseTimeMapper;
import com.wanmait.recruitment.pojo.ReleaseTime;
import com.wanmait.recruitment.service.ReleaseTimeService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class ReleaseTimeServiceImpl implements ReleaseTimeService {
    @Resource
    private ReleaseTimeMapper releaseTimeMapper;


    @Override
    public void insert(ReleaseTime object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(ReleaseTime object) {

    }

    @Override
    public ReleaseTime findById(Integer id) {
        return null;
    }

    @Override
    @Cacheable("releaseTimeCache")
    public List<ReleaseTime> findAll() {
        return releaseTimeMapper.findAll();
    }

    @Override
    public List<ReleaseTime> findAll(ReleaseTime object) {
        return null;
    }

    @Override
    public PageInfo<ReleaseTime> findPage(int pageNum, int pageSize) {
        return null;
    }

}
